/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.conformPrinciple.CRP;

import za.ac.cput.conformPrinciple.CRP.Impl.MediaCenterImp;
import za.ac.cput.conformPrinciple.CRP.Impl.WorkstationImp;

/**
 *
 * @author Oceanwave
 */
public class Computer implements ElectronicDevice, MediaCenter, Workstation
{

    MediaCenter mediaComponent = new MediaCenterImp();
    Workstation workstationComponent = new WorkstationImp();
    
    
    @Override
    public void runIDE() 
    {
        mediaComponent.runIDE();
    }

    @Override
    public void openOfficeApp() 
    {
        mediaComponent.openOfficeApp();
    }

    @Override
    public void playGames() 
    {
        workstationComponent.playGames();
    }

    @Override
    public void playMovie() 
    {
        workstationComponent.playMovie();
    }
    
}
